package com.zhihui.client.alarm.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;
/**
 * 
 * @author zhihuian
 * @email 18037017565@163.com
 * @date 2018/10/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Alarmvideo implements Serializable {
        /**
         * 报警视频ID
         */
        private Integer avidid;
        /**
         * 报警视频名称
         */
        private String avidname;
        /**
         * 报警视频格式
         */
        private String avidformat;
        /**
         * 报警视频大小
         */
        private Integer avidsize;
        /**
         * 报警视频URL
         */
        private String avidurl;
        /**
         * 视频预览图URL
         */
        private String skchimgurl;
        /**
         * 报警视频录制时间
         */
        @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
        @DateTimeFormat(pattern = "yyyy-MM-dd")
        private Date starttime;
        /**
         * 监控点ID
         */
        private Integer mptid;
        /**
         * 报警记录ID
         */
        private Integer arecid;
}
